PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


WindowTitleDrawingUPP

The Appearance Manager defines the type for an application-defined window title drawing function as follows:

typedef pascal (void, WindowTitleDrawingProcPtr) (
                     const Rect *bounds,
                     SInt16 depth,
                     Boolean colorDevice,
                     SInt32 userData);

The Appearance Manager defines the data type WindowTitleDrawingUPP to identify the universal procedure pointer for an application-defined window title drawing function:

typedef WindowTitleDrawingProcPtr WindowTitleDrawingUPP;

You typically use the NewWindowTitleDrawingProc macro like this:

WindowTitleDrawingUPP myWindowTitleDrawingUPP;
myWindowTitleDrawingUPP = NewWindowTitleDrawingProc(MyWindowTitleDrawingProc);

You typically use the CallWindowTitleDrawingProc macro like this:

CallWindowTitleDrawingProc(myWindowTitleDrawingUPP, bounds, depth, colorDevice,
userData);

To implement your own window title drawing function, see MyWindowTitleDrawingProc . The WindowTitleDrawingProcPtr type is available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)